package com.atguigu.educms.controller;

import com.atguigu.commonutils.R;
import com.atguigu.educms.entity.CrmBanner;
import com.atguigu.educms.service.CrmBannerService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiOperation;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.*;


import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 前台 banner 接口
 * @author He Wentao
 * @since 2022/9/12 16:11
 */
@RestController
@RequestMapping("/educms/banner")
public class BannerFrontController {

    @Resource
    CrmBannerService service;


    @GetMapping("getAllBanner")
    public R getAllBanner(){
        return service.getBannerList();
    }

}
